package com.lucene.blog.bean;

import java.util.Date;

/**
 * @Description 评论Bean
 * @author yachao
 *
 */
public class Comment {

	private Integer commentId;
	private String userIP; // 评论日期
	private String content; // 评论内容
	private Date commentDate; // 评论日期
	private Integer state; // 审核状态: 0待审核，1审核通过，2未通过
	private Blog blog; // 关联的博客

	public Integer getCommentId() {
		return commentId;
	}

	public void setCommentId(Integer commentId) {
		this.commentId = commentId;
	}

	public String getUserIP() {
		return userIP;
	}

	public void setUserIP(String userIP) {
		this.userIP = userIP;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCommentDate() {
		return commentDate;
	}

	public void setCommentDate(Date commentDate) {
		this.commentDate = commentDate;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Blog getBlog() {
		return blog;
	}

	public void setBlog(Blog blog) {
		this.blog = blog;
	}

	@Override
	public String toString() {
		return "Comment [commentId=" + commentId + ", userIP=" + userIP + ", content=" + content + ", commentDate="
				+ commentDate + ", state=" + state + ", blog=" + blog + "]";
	}

}
